import Axios from '@/plugins/axios'

// 获取资源组列表数据
export const resourceGroupList = (params) => {
    return Axios(
        {
          // url: `http://172.16.103.12/vte/system/queryResourceGroupList`,
          url: `/vte/system/queryResourceGroupList`,
          method: 'get',
          params:params
        }
      )
};

// 删除资源组
export const deleteResourceGroup = (id) => {
    return Axios(
        {
          url: `/vte/system/deleteResourceGroup`,
          method: 'get',
          params:{
            id:id
          }
        }
      )
};

// 保存资源组
export const saveResourceGroup = (params) => {
    return Axios(
        {
          url: `/vte/system/saveResourceGroup`,
          method: 'post',
          data:params
        }
      )
};
